package com.guigu.health.service;

import com.github.pagehelper.PageInfo;
import com.guigu.health.pojo.Member;
import com.guigu.health.pojo.MemberExample;
import com.guigu.health.pojo.MemberTwo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @ClassName:MemberService
 * @Description:会员业务
 * @Author:longtao
 * @Date:2021/3/31
 * @Version:1.0
 */
public interface MemberService {
    /**
     * 查询会员表
     * @param account
     * @return
     */
    Member queryByAccount(String account);

    /**
     * 分页查询
     * @param example
     * @param pageNum:页码
     * @param pageSize:大小
     * @return
     */
    PageInfo<Member> queryAll(MemberExample example, Integer pageNum, Integer pageSize);

    /**
     * 根据id删除会员
     * @param id
     * @return
     */
     boolean DeleteMemberById(Integer id);

    /**
     *修改会员
     * @param member
     * @param example
     * @return
     */
     boolean UpdateMemberById(Member member,MemberExample example);

    /**
     * 查询每天的会员注册量
     * @param date
     * @return
     */
     List<Integer> getCount(List<String> date);

    /**
     * 根据邮箱查询信息
     * @param account
     * @return
     */
     MemberTwo queryAll(String account);
}
